﻿@model Windvoice.Albums.Album

@{
    ViewBag.Title = "Album Edit";
    Layout = "~/Areas/Manage/Views/Shared/_Layout.cshtml";
}

@section headSection{
    <script src="@Url.Content("~/Content/js/jquery.validate.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Content/js/jquery.validate.unobtrusive.js")" type="text/javascript"></script>
}

<div class="pagetitle">
    <h2>编辑相册</h2>
    <div class="pagefunctions">
        @Html.ActionLink("返回列表", "index")
    </div>    
</div>

@using (Html.BeginForm("edit", "album", FormMethod.Post, new { @class = "dataform" }))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>相册</legend>

        @Html.HiddenFor(model => model.ID)
        @Html.HiddenFor(model => model.FacePhoto)

        <div class="editor-label">
            @Html.LabelFor(model => model.AlbumName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AlbumName)
            @Html.ValidationMessageFor(model => model.AlbumName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Description, new { style="width:40em;height:5em" })
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <p>
            <input type="submit" value="提交" class="submitbutton" />
        </p>
    </fieldset>
}